<template>
    <div class="newsDetail">
        <h3>{{newsDetail.title}}</h3>
        <span>发布日期：{{newsDetail.time}}</span>
        <p>{{newsDetail.content}}</p>
    </div>
</template>

<script>
import { mapGetters } from 'vuex'
export default {
    computed: {
        ...mapGetters([
            'newsDetail'
        ])
    },
    created() {
        this.$store.dispatch('getNewsDetail')
    },
    data() {
        return {

        }
    }
}
</script>

<style lang="less">
.newsDetail {
    text-align: center !important;
    h3 {
        color: #1169b8;
        font-size: 16px;
    }
    span{
        font-size: 14px;
    }
    p{
        text-align: left;
        text-indent: 20px;
        font-size: 14px;
        line-height: 1.8;
    }
}
</style>